package com.itcast.excel.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itcast.excel.entity.CourseEntity;
import com.itcast.excel.mapper.CourseMapper;
import com.itcast.excel.service.ICourseService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zheng.zhang
 */
@AllArgsConstructor
@Service
public class CourseServiceImpl implements ICourseService {
    private final CourseMapper courseMapper;

    @Override
    public List<CourseEntity> query() {
        return courseMapper.selectList(new QueryWrapper<>());
    }
}
